package com.ruoyi.workbenches.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 投诉信息对象 complain
 * 
 * @author ruoyi
 * @date 2025-03-20
 */
public class Complain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long complainId;

    /** 投诉标题 */
    @Excel(name = "投诉标题")
    private String title;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    private String content;

    /** 投诉人id */
    @Excel(name = "投诉人id")
    private Long personId;

    /** 投诉人 */
    @Excel(name = "投诉人")
    private String personName;

    /** 状态(1未处理，2处理中，3结案) */
    @Excel(name = "状态(1未处理，2处理中，3结案)")
    private Long state;

    /** 协调人员 */
    @Excel(name = "协调人员")
    private String dealPerson;

    /** 处理结果 */
    @Excel(name = "处理结果")
    private String dealResult;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dealTime;

    public void setComplainId(Long complainId) 
    {
        this.complainId = complainId;
    }

    public Long getComplainId() 
    {
        return complainId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setDealPerson(String dealPerson) 
    {
        this.dealPerson = dealPerson;
    }

    public String getDealPerson() 
    {
        return dealPerson;
    }
    public void setDealResult(String dealResult) 
    {
        this.dealResult = dealResult;
    }

    public String getDealResult() 
    {
        return dealResult;
    }
    public void setDealTime(Date dealTime) 
    {
        this.dealTime = dealTime;
    }

    public Date getDealTime() 
    {
        return dealTime;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("complainId", getComplainId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("personId", getPersonId())
            .append("createTime", getCreateTime())
            .append("state", getState())
            .append("dealPerson", getDealPerson())
            .append("dealResult", getDealResult())
            .append("dealTime", getDealTime())
            .toString();
    }
}
